<template>
	<view class="container">
		<view class="header" @click="test">

		</view>
		<view style="height: 200rpx;width: 100%;"></view>
		<view class="ku">
			<view class="item">
				<view class="item-header" @click="navVideoLibrary(1)">
                      <view class="title">
                        3秒素材库
                      </view>
					  <view class="sub-title">
					    适合多镜成片调用
					  </view>
				</view>
				<view class="right">></view>
			</view>
			
			<view class="item" @click="navVideoLibrary(2)">
				<view class="item-header">
					<view class="title">
					 7秒素材库
					</view>
					<view class="sub-title">
					  适合一镜成片调用
					</view>
				</view>
				<view class="right">></view>
			</view>
			
			<view class="item" @click="navVideoLibrary(3)">
				<view class="item-header">
					<view class="title">
					 7秒以上素材库
					</view>
					<view class="sub-title">
					 建议不超过15~20秒的素材使用
					</view>
				</view>
				<view class="right">></view>
			</view>
		</view>
		

	</view>

</template>

<script>
	import Http from "@/utils/http"
	const http = new Http()
	const app = getApp()
	export default {
		data() {
			return {
				videoInfoList:[],
				shopId:'',
			}
		},
		mounted() {
			this.shopId = app.globalData.shopId
		},
		methods: {
			navVideoLibrary(type){
				uni.navigateTo({
					url:`/subpkg/videoLibrary/videoLibrary?type=${type}`
				})
			},
			//删除视频
			deleteVideo(id){
				http.get('v1/jiaoben/delete/'+id).then(res=>{
					if(res.code == 200){
						this.getInfo();
					}
				})
			},
			//查看视频详情
			lookVideo(item){
				uni.navigateTo({
					url:'/subpkg/mkvideo/myJianjiKu?id='+item.id
				})
			},
		}
	}
</script>

<style scoped lang="scss">
	page {
		background: #fff;
	}

	.header {
		background-image: url('https://jz-cnsiot.oss-cn-shanghai.aliyuncs.com/mojian/2024/3/21/1710990508921b0a0ab8061f342a98f88cb730329b8e3.jpg');
		height: 200rpx;
		width: 100%;
		position: fixed;
		z-index: 99;
		left: 0;
		right: 0;
		top: 0;
	}

	.ku {

		.item {
			margin: 30rpx 20rpx;
			padding: 20rpx;
			background: #fff;
			border-radius: 20rpx;
                display:flex;
				align-items: center;
				justify-content: space-between;
			.item-header {
				align-items: center;
				font-size: 40rpx;
				flex: 1;
				.sub-title{
					
					font-size: 30rpx;
					margin-top: 10rpx;
					color: #666;
				}
			}
			.right{
				width: 50rpx;
				height: 50rpx;
				font-size: 42rpx;
				color: #707070;
				margin-left: 30rpx;
			}
		}
	}

	

</style>